﻿/***********************************************************************
 * <copyright file="PermissionAttribute.cs" company="B/S JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@newman.vn
 * Website:
 * Create Date: Friday, March 7, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using System.Web.Mvc;
using DxMvcApplication.Code;

namespace DXWebApplication.Filters
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
    public sealed class HttpAccessAttribute : ActionFilterAttribute
    {
        public EnumHelper.AccessType AccessType { get; set; }
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if(AccessType==EnumHelper.AccessType.ReadOnly)
            {
                
            }
            base.OnActionExecuting(filterContext);
        }                
    }
}